import networkx as nx
import matplotlib.pyplot as mp
def drawGraph(G):
    _G = nx.Graph()
    _G.add_nodes_from(range(0, len(G)))
    for i in range(0, len(G)):
        for j in range(i + 1, len(G)):
            if(G[i][j] == 1):
                _G.add_edge(i, j)
    ps = nx.circular_layout(_G)
    nx.draw(_G, ps, with_labels=False, node_size = len(G))
    mp.show()
def drawDiGraph(G):
    _G = nx.DiGraph()
    _G.add_nodes_from(range(0, len(G)))
    for i in range(0, len(G)):
        for j in range(0, len(G)):
            if(i == j): continue
            if(G[i][j] == 1):
                _G.add_edge(i, j)
    ps = nx.circular_layout(_G)
    nx.draw(_G, ps, with_labels=False, node_size = len(G))
    mp.show()